// -----------------------------------------------------------------------
// <copyright file="DonThuocChiTietEntity.cs" company="QSoft Viet Nam">
// TODO: Copyright © 2005-2012 QSoft Vietnam Corporation.
// </copyright>
// -----------------------------------------------------------------------
namespace ManagerClinic.Core.Common
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// Entity DonThuocChiTiet
    /// </summary>
    public class DonThuocChiTietEntity : DmVatTuEntity
    {
        /// <summary>
        /// Gets or sets the MaVatTu
        /// Data type: varchar
        /// Maxlenght: 50
        /// </summary>
        public string MaVatTu { get; set; }

        /// <summary>
        /// Gets or sets the MaDonThuoc
        /// Data type: varchar
        /// Maxlenght: 50
        /// </summary>
        public string MaDonThuoc { get; set; }

        /// <summary>
        /// Gets or sets the SoLuong
        /// Data type: float
        /// </summary>
        public double SoLuong { get; set; }

        /// <summary>
        /// Gets or sets the MaCachDung
        /// Data type: varchar
        /// Maxlenght: 50
        /// </summary>
        public string MaCachDung { get; set; }

        public string TenCachDung { get; set; }
        /// <summary>
        /// Gets or sets the LanDung
        /// Data type: float
        /// </summary>
        public double LanDung { get; set; }

        /// <summary>
        /// Gets or sets the SoLuongDung
        /// Data type: float
        /// </summary>
        public double SoLuongDung { get; set; }

        /// <summary>
        /// Gets or sets the MaDonVi
        /// Data type: varchar
        /// Maxlenght: 50
        /// </summary>
        public string MaDonVi { get; set; }

        public string TenDonVi { get; set; }

        /// <summary>
        /// Gets or sets the MaDonViDung
        /// Data type: varchar
        /// Maxlenght: 50
        /// </summary>
        public string MaDonViDung { get; set; }

        public string TenDonViDung { get; set; }

        /// <summary>
        /// Gets or sets the MaGhiChuCachDung
        /// Data type: varchar
        /// Maxlenght: 50
        /// </summary>
        public string MaGhiChuCachDung { get; set; }

        public string TenGhiChuCachDung { get; set; }

        public string CachDungThuocText
        {
            get { return "Mỗi ngày " + TenCachDung.ToLower() + " " + LanDung.ToString() + " lần. Mỗi lần " + SoLuongDung.ToString() + " " + TenDonViDung + ". " + TenGhiChuCachDung; }
        }

    }
}
